package top.hidoctor.auscultation.adapter;

import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.bean.PatientLocalInfo;

public class LocalHistoryAdapter extends BaseQuickAdapter<PatientLocalInfo> {
    public LocalHistoryAdapter(int layoutResId, List<PatientLocalInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PatientLocalInfo item) {
        helper.setOnClickListener(R.id.ll_content, new OnItemChildClickListener());
        helper.setOnClickListener(R.id.iv_delete, new OnItemChildClickListener());
        helper.setText(R.id.tv_name, item.getFileName());
//        helper.setText(R.id.tv_content, "姓名：" + item.getName() + " 年龄：" + item.getAge() + "岁 性别：" + (item.getGender().equals("F") ? "女" : "男"));

    }
}
